<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="renderer" content="webkit">
<meta name="msapplication-tap-highlight" content="no" /><!-- winphone 点击无高光 -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>演示例子</title>
<script src="wsj-export-excel.js" type="text/javascript"></script>
</head>
<body>
	<table id="mock_table">
        <tr><td>姓名</td><td>年薪</td></tr>
        <tr><td>张三</td><td>123456</td></tr>
        <tr><td>李四</td><td style="mso-number-format:'\@';">12345678945632123654789652</td></tr>
	</table>

<button id="domDownload">点我下载(网页表格版)</button>
<hr>
<pre>
var arrData = [
    ['姓名', '数字'],
    ['斯蒂芬', '12345678912.1233'],
    ['阿斯', '12345.12345'],
    ['阿萨德', '12345.123456'],
    ['撒旦', '1234.51234567890'],
    ['立马', '12345678901'],
    ['撒旦群', '123456789012'],
    ['通天塔', '1234567890123'],
    ['电饭锅', '12345678901234']
]
</pre>
<button id="arrDownload">点我下载(纯数组版)</button>
<script>
document.querySelector('#domDownload').addEventListener('click',function(){
    WsjExportExcel({
        data:'#mock_table'
    })
},false)

var arrData = [
    ['姓名', '数字'],
    ['斯蒂芬', '12345678912.1233'],
    ['阿斯', '12345.12345'],
    ['阿萨德', '12345.123456'],
    ['撒旦', '1234.51234567890'],
    ['立马', '12345678901'],
    ['撒旦群', '123456789012'],
    ['通天塔', '1234567890123'],
    ['电饭锅', '12345678901234']
]
document.querySelector('#arrDownload').addEventListener('click',function(){
    WsjExportExcel({
        data:arrData
    })
},false)
</script>
</body>
</html>
